 
 
 
export const initialise = (state, payload) => {
  Object.assign(state, payload);
};

export const setLayout = (state, payload) => {
  if (payload && payload.navPos !== undefined) state.layout.navPos = payload.navPos;

  if (payload && payload.toolbar !== undefined) state.layout.toolbar = payload.toolbar;

  if (payload && payload.footer !== undefined) state.layout.footer = payload.footer;

  if (payload && payload.boxed !== undefined) state.layout.boxed = payload.boxed;

  if (payload && payload.roundedCorners !== undefined) state.layout.roundedCorners = payload.roundedCorners;

  if (payload && payload.viewAnimation !== undefined) state.layout.viewAnimation = payload.viewAnimation;
};

export const setLogin = (state, payload) => {
  state.auth = payload;
};
export const setLogout = (state, payload) => {
  state.layout.navPos = null;
  state.layout.toolbar = null;
  state.auth = null;
};
export const setSplashScreen = (state, payload) => {
  state.splashScreen = payload;
};
